package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 资质证书等级表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_credential_level")
@ApiModel(value = "CredentialLevel对象", description = "资质证书等级表")
public class CredentialLevel extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("证书id")
    @TableField("credential_id")
    private Long credentialId;

    @ApiModelProperty("证书编号")
    @TableField("credential_code")
    private String credentialCode;

    @ApiModelProperty("级别名称")
    @TableField("level_name")
    private String levelName;

    @ApiModelProperty("级别")
    @TableField("`level`")
    private Integer level;

    @ApiModelProperty("用户编号")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("删除标识")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String CREDENTIAL_ID = "credential_id";

    public static final String CREDENTIAL_CODE = "credential_code";

    public static final String LEVEL_NAME = "level_name";

    public static final String LEVEL = "level";

    public static final String MEMBER_ID = "member_id";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
